package edu.nf.placeorder.common.exception;

/**
 * @author wangl
 * @date 2025/9/28
 */
public class GlobalException extends RuntimeException {

    private final Integer errorCode;

    public GlobalException(Integer errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public Integer getErrorCode() {
        return errorCode;
    }
}